/*!
    \file    change log.txt
    \brief   change log for GD32H7xx demo

    \version 2025-02-19, V2.1.0, demo for GD32H7xx
*/

/*
    Copyright (c) 2024, GigaDevice Semiconductor Inc.

    Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice, this 
       list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright notice, 
       this list of conditions and the following disclaimer in the documentation 
       and/or other materials provided with the distribution.
    3. Neither the name of the copyright holder nor the names of its contributors 
       may be used to endorse or promote products derived from this software without 
       specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.
*/

******************* V2.1.0 2025-02-18 ******************************************************************************************
______________________Common______________________________________________________________________________________________
1. Update the Firmware to V1.4.0
2. Update schematic and User Guide

Fix file:
gd32h757v_start.c
fix reason:
Bug fix
V2.0.0:
static const uint8_t KEY_IRQn[KEYn]
V2.1.0:
static const IRQn_Type KEY_IRQn[KEYn]

Fix file:
../GD32H7xx_Demo_Suites/GD32H757V_START_Demo_Suites/Projects/06_USB_MSC_Device/src/gd32h7xx_usb_hw.c
../GD32H7xx_Demo_Suites/GD32H757V_START_Demo_Suites/Projects/07_USB_MSC_Host/src\gd32h7xx_usb_hw.c
fix reason:
Bug fix
V2.0.0:
nvic_irq_enable((uint8_t)USBHS0_IRQn, 3U, 0U);
...
nvic_irq_enable((uint8_t)USBHS0_WKUP_IRQn, 1U, 0U);
...
nvic_irq_enable((uint8_t)TIMER2_IRQn, 1U, 0U);

V2.1.0:
nvic_irq_enable(USBHS0_IRQn, 3U, 0U);
...
nvic_irq_enable(USBHS0_WKUP_IRQn, 1U, 0U);
...
nvic_irq_enable(TIMER2_IRQn, 1U, 0U);


******************* V2.0.0 2024-07-31 ******************************************************************************************
______________________Common______________________________________________________________________________________________
Fix file:
gd32h7xx_it.c
fix reason:
add FPU_IRQHandler function
V1.2.0:
none
V2.0.0:
/*!
    \brief      this function handles FPU exception
    \param[in]  none
    \param[out] none
    \retval     none
*/
void FPU_IRQHandler(void)
{
    /* if FPU exception occurs, go to infinite loop */
    while(1) {
    }
}

Fix file:
gd32h7xx_it.h
fix reason:
add the definition of FPU_IRQHandler function
V1.2.0:
none
V2.0.0:
/* this function handles FPU exception */
void FPU_IRQHandler(void);

Fix file:
all files containing the printf retarget function
fix reason:
Modify the printf retarget function, add the eclipse gcc environment usage
V1.2.0:
/* retarget the C library printf function to the USART */
int fputc(int ch, FILE *f)
{
    usart_data_transmit(EVAL_COM, (uint8_t)ch);
    while(RESET == usart_flag_get(EVAL_COM, USART_FLAG_TBE));

    return ch;
}
V2.0.0:
#ifdef GD_ECLIPSE_GCC
/* retarget the C library printf function to the USART, in Eclipse GCC environment */
int __io_putchar(int ch)
{
    usart_data_transmit(EVAL_COM, (uint8_t) ch );
    while(RESET == usart_flag_get(EVAL_COM, USART_FLAG_TBE));
    return ch;
}
#else
/* retarget the C library printf function to the USART */
int fputc(int ch, FILE *f)
{
    usart_data_transmit(EVAL_COM, (uint8_t)ch);
    while(RESET == usart_flag_get(EVAL_COM, USART_FLAG_TBE));

    return ch;
}
#endif /* GD_ECLIPSE_GCC */
__________________________________________________________________________________________________________________________


